<?php 
/* ****************************EA Improved TEMPLATE*******************************
File:					obj.php
EstateAgent Improved - a Joomla Component
Template:			clasic
Copyright:			2007 Manos Orfanoudakis - "vosk"
Homepage: 		http://www.eaimproved.eu
Version: 			1.1 for EA imp > 1.3.x                  
License:			GNU/GPL http://www.gnu.org/copyleft/gpl.html
*************************************************************************** */
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

        ?>

        
		<br />
		<div align="center">
		<b><?php echo _EA_OBJ_ID . ":&nbsp;" . $obj->obj_id. mosEAHTML::arrowIcon().$obj->title;  EA_Template::FastEditBtn($obj);?></b>  
					
		</div>
		<br />
		<?php                                
        $tabs = new mosTabs(0,0);
        $tabs->startPane("content-pane");
        $tabs->startTab(_EA_OBJ_OVERVIEW, "overview-page");
	    ?>        
        <table width="100%" border="0" cellspacing="1" cellpadding="4">
			  <tr>
        	<td class="sectiontableentry2" colspan="2" align="center"></td>
        </tr>
        <tr>
        	<td class="sectiontableentry1" valign="top" width="50%">
            	<table width="100%" border="0" cellspacing="1" cellpadding="4">
                <?php
                
				switch($obj->type) {
					
					case "1": // single type for rent
					case "2": // single type for sale
						echo "<tr><td width=\"60%\">" . _EA_OBJ_DWSPACE . ":</td>";
                		echo "<td width=\"40%\">" . $obj->space . "&nbsp;" . $eaconf->ea_measure . "<br /></td></tr>";
                    	echo "<tr><td>" . _EA_OBJ_ROOMNR . ":</td><td>" . $obj->rooms . "<br /></td></tr>";
					break;

					case "3": // multi type for rent
					case "4": // multi type for sale
						echo "<tr><td width=\"70%\"><br />" . _EA_OBJ_HOMES .  ":</td>";
                    	echo "<td width=\"30%\"><br />" . $obj->homes . "</td></tr>";
                    	echo "<tr><td>" . _EA_OBJ_HOMES_SIZE . ":</td>";
                    	echo "<td>" . $obj->homes_size . "&nbsp;" . $eaconf->ea_measure . "</td></tr>";
                    	echo "<tr><td>" . _EA_OBJ_TRADE_UNITS . ":</td>";
                    	echo "<td>" . $obj->trade_units . "<br /></td></tr>";
                    	echo "<tr><td>" . _EA_OBJ_TRADE_SIZE . ":</td>";
                    	echo "<td>" . $obj->trade_size . "&nbsp;" .$eaconf->ea_measure . "</td></tr>";
                    	echo "<tr><td>" . _EA_OBJ_PP_SIZE . ":</td>";
                    	echo "<td>" . $obj->pp_size . "&nbsp;" .$eaconf->ea_measure . "</td></tr>";
					break;
				
				}                
				switch($obj->type) {					
					case "1": // ... for rent
					case "3":
						if($obj->rent != 0.00){
						 echo "<tr><td>" . _EA_OBJ_RENT . ":</td><td width=\"50%\">" .  $eahelper->valFormat($obj->rent) . "<br /></td></tr>";
						 }
						 else{
						 echo "<tr><td>" . _EA_OBJ_RENT . ":</td><td width=\"50%\"><b>" . _EA_OBJ_NO_PRICE . "</b><br /></td></tr>";
						 }
						 
              		break;
					case "2": // ...for sale
					case "4":
							if($obj->price != 0.00){
						 echo "<tr><td>" . _EA_OBJ_PRICE . ":</td><td width=\"50%\">" .  $eahelper->valFormat($obj->price) . "<br /></td></tr>";
						 }
						 else{
						 echo "<tr><td>" . _EA_OBJ_PRICE . ":</td><td width=\"50%\"><b>" .  _EA_OBJ_NO_PRICE . "</b><br /></td></tr>";
						 }
                	break;				
				}        	
                ?>    
                <tr>
                	<td colspan="2"><br /></td>
                </tr>
                </table>
        	</td>
        	<td class="sectiontableentry1" style="text-align:center">
            <?php           
            $pic = EAImage::load_firstPic($obj->id,$eaconf->ea_picpath,$eaconf->ea_tbwidth);
			echo $pic . "<br/>";
           	?>
            </td>
       	</tr>
        </table>
        <br />
		<table width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr>
        	<td class="sectiontableentry1" valign="top" width="50%"><strong><?php echo _EA_OBJ_ADDRESS;?></strong><br/>
            <?php
            if($eaconf->ea_fulllocation == 1 && $obj->street != "") echo $obj->street . " " . $obj->streetnr . "<br />";
            echo $obj->pcode . "&nbsp;" . $obj->town . "&nbsp;" . $obj->district . "<br />";
            if($obj->locstate != "") echo $obj->locstate . "<br />";
            echo $obj->country . "<br /><br />";
            echo $obj->map24link . "</td>";
			if($ct){
				echo "<td class=\"sectiontableentry1\" width=\"50%\" valign=\"top\"><b>" . _EA_CTF_CONTACTADRESS . "</b><br />";
    			if($ct->name !="") echo $ct->name . "<br />";
				if($ct->postcode != "") echo $ct->postcode . " ";
				if($ct->address != "") echo $ct->address . "<br />";
				if($ct->suburb != "") echo $ct->suburb . "<br />";
				if($ct->country != "") echo $ct->country . "<br /><br />";
				if($ct->telephone != "") echo _EA_CTF_FON.": " . $ct->telephone . "<br />";
				if($ct->fax != "") echo _EA_CTF_FAX.": " . $ct->fax . "<br />";
				if($ct->email_to != "") echo $ct->email_to . "<br /><br />";
			}
			else echo "<td class=\"sectiontableentry1\" width=\"50%\">&nbsp;";	
			echo "</td></tr>";
        echo "</table>";
      	
    	$tabs->endTab();
        $tabs->startTab(_EA_OBJ_EXPOSE, "expose-page");
		           	       	
        ?>        	
        <script type="text/javascript" src="includes/js/mambojavascript.js"></script>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        	<td class="sectiontableentry2">&nbsp;</td>
        	<?php
	    	if(count($fl['mov']) > 0 || count($fl['pdf']) > 0 || count($fl['msdoc']) > 0  || count($fl['ooffice']) > 0 ) {			
				$uid = ($my->id == 0)? -1 : $my->id;
				echo "<td rowspan=\"2\" style=\"width:".($eaconf->ea_tbwidth+20)."px; vertical-align:top; text-align:center; background-color:#DADADA\">";
				echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">";
				echo "<tr><td><b>"._EA_OBJ_MEDIA."</b></td></tr>";
				
				if(count($fl['mov']) > 0){
					echo "<tr><td>"._EA_OBJ_MOVIES."</td></tr>";
					foreach($fl['mov'] as $f){						
						$f->ftype = strtolower(substr($f->type,-3));
						echo "<tr><td align=\"center\">";
						echo "<a href=\"". sefRelToAbs($mosConfig_live_site.$f->path.$f->fname.$f->type)."\">"
								. "<img src=\"".$mosConfig_live_site . "/components/com_estateagent/pictures/gui/" . $f->ftype . ".png\" title=\"".$f->title."\" border=\"0\""
								. " onMouseOver=\"return overlib('".$f->description."', CAPTION, '".$f->title."', BELOW, RIGHT);\" onMouseOut=\"return nd();\"	 /></a>";
						echo "</td></tr>";
					}
				}         
				if(count($fl['pdf']) > 0){
					echo "<tr><td>PDFs</td></tr>";
					foreach($fl['pdf'] as $f){						
						$f->ftype = strtolower(substr($f->type,-3));
						echo "<tr><td align=\"center\">";
						echo "<a href=\"". sefRelToAbs($mosConfig_live_site.$f->path.$f->fname.$f->type)."\">"
								. "<img src=\"".$mosConfig_live_site . "/components/com_estateagent/pictures/gui/" . $f->ftype . ".png\" title=\"".$f->title."\" border=\"0\""
								. " onMouseOver=\"return overlib('".$f->description."', CAPTION, '".$f->title."', BELOW, RIGHT);\" onMouseOut=\"return nd();\"	 /></a>";
						echo "</td></tr>";
					}
				}
				if(count($fl['msdoc']) > 0){
					echo "<tr><td>MS Docs</td></tr>";
					foreach($fl['msdoc'] as $f){						
						$f->ftype = strtolower(substr($f->type,-3));
						echo "<tr><td align=\"center\">";
						echo "<a href=\"". sefRelToAbs($mosConfig_live_site.$f->path.$f->fname.$f->type)."\" target=\"_blank\">"
								. "<img src=\"".$mosConfig_live_site . "/components/com_estateagent/pictures/gui/" . $f->ftype . ".png\" title=\"".$f->title."\" border=\"0\""
								. " onMouseOver=\"return overlib('".$f->description."', CAPTION, '".$f->title."', BELOW, RIGHT);\" onMouseOut=\"return nd();\"	 /></a>";
						echo "</td></tr>";
					}
				}
				if(count($fl['ooffice']) > 0){
					echo "<tr><td>OpenOffice</td></tr>";
					foreach($fl['ooffice'] as $f){						
						$f->ftype = strtolower(substr($f->type,-3));
						echo "<tr><td align=\"center\">";
						echo "<a href=\"". sefRelToAbs($mosConfig_live_site.$f->path.$f->fname.$f->type)."\" target=\"_blank\">"
								. "<img src=\"".$mosConfig_live_site . "/components/com_estateagent/pictures/gui/" . $f->ftype . ".png\" title=\"".$f->title."\" border=\"0\""
								. " onMouseOver=\"return overlib('".$f->description."', CAPTION, '".$f->title."', BELOW, RIGHT);\" onMouseOut=\"return nd();\"	 /></a>";
						echo "</td></tr>";
					}
				}          	
        		echo "</table>";
				echo "</td>";        
        	} ?>
        </tr>      
        <tr>        
        	<td valign="top">
        		<table width="100%" border="0" cellspacing="1" cellpadding="4">
        		<?php
        		if(trim($obj->description) != "" && trim($obj->description) != "<br/>" && trim($obj->description) != "<br />" && trim($obj->description) != "</p>"){?>
        		<tr><th colspan="2" class="sectiontableentry2"><?php echo _EA_OBJ_DESCRIPT;?></th></tr>
        		<tr><td colspan="2" class="sectiontableentry1"><?php echo $obj->description;?></td></tr>
       			<?php }
        		if(trim($obj->location) != "" && trim($obj->location) != "<br/>" && trim($obj->location) != "<br />" && trim($obj->location) != "</p>"){?>
        		<tr><th colspan="2" class="sectiontableentry2"><?php echo _EA_OBJ_LOCATION;?></th></tr>
           		<tr><td colspan="2" class="sectiontableentry1"><?php echo $obj->location;?></td></tr>
        		<?php }
        		if(trim($obj->condition) != "" && trim($obj->condition) != "<br/>" && trim($obj->condition) != "<br />" && trim($obj->condition) != "</p>"){?>
        		<tr><th colspan="2" class="sectiontableentry2"><?php echo _EA_OBJ_CONDITION;?></th></tr>
        		<tr><td colspan="2" class="sectiontableentry1"><?php echo $obj->condition;?></td></tr>
        		<?php }
        		if(trim($obj->other) != "" && trim($obj->other) != "<br/>" && trim($obj->other) != "<br />" && trim($obj->other) != "</p>"){?>
        		<tr><th colspan="2" class="sectiontableentry2"><?php echo _EA_OBJ_FURTHER;?></th></tr>
        		<tr><td colspan="2" class="sectiontableentry1"><?php echo $obj->other;?></td></tr>
        		<?php } ?> 
        		<tr><td colspan="2"></td></tr>

        		<!-- ************* show object data & equipment *************************** -->
        		<tr><th colspan="2" class="sectiontableentry2"><?php echo _EA_OBJ_DATA;?></th></tr>
        		<?php
        		switch($obj->type) {
					
					case "1": // single type for rent
					case "2": // single type for sale
						echo "<tr>"; //EDW ALLAGH
						if (!$obj->rooms=="0") //EDW ALLAGH
						{
							echo "<td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_ROOMNR . ":&nbsp;" . $obj->rooms . "</td>";
						} //EDW ALLAGH
						//APO KATW ALLAGH
        				echo "	  <td width=\"50%\" class=\"sectiontableentry1\"".(($obj->rooms=="0")?" colspan=\"2\"":"")." >" . _EA_OBJ_DWSPACE . ":&nbsp;" . $obj->space . "&nbsp;" . $eaconf->ea_measure . "</td></tr>";					
        				echo "<tr>";
						if($obj->bedrooms>0) echo "<td class=\"sectiontableentry1\">"._EA_OBJ_BEDROOMS . ":&nbsp;" . $obj->bedrooms."</td>";

						if($obj->wc>0) echo " <td class=\"sectiontableentry1\">"._EA_OBJ_WC . ":&nbsp;" . $obj->wc."</td>";
						echo	"</tr>";
						
					break;

					case "3": // multi type for rent
					case "4": // multi type for sale
						echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">"._EA_OBJ_HOMES."</td><td width=\"50%\" class=\"sectiontableentry1\">" . $obj->homes . "</td></tr>";
            			echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_HOMES_SIZE."</td><td class=\"sectiontableentry1\">" . $obj->homes_size . "&nbsp;" .$eaconf->ea_measure . "</td></tr>";
            			echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_TRADE_UNITS."</td><td class=\"sectiontableentry1\">" . $obj->trade_units . "</td></tr>";
            			echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_TRADE_SIZE."</td><td class=\"sectiontableentry1\">" . $obj->trade_size . "&nbsp;" .$eaconf->ea_measure . "</td></tr>";
          				echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_PP_SIZE."</td><td class=\"sectiontableentry1\">" . $obj->pp_size . "&nbsp;" .$eaconf->ea_measure . "</td></tr>";
          				echo "<tr><td colspan=\"2\"><br /></td></tr>";
					break;

				}	
							
        		if (!$obj->rooms=="0") //EDW ALLAGH
				{
				echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">". _EA_OBJ_POSITION.":&nbsp;".$obj->position."</td>";
        		$lift = ($obj->lift == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<td width=\"50%\" class=\"sectiontableentry1\">"._EA_OBJ_LIFT.":&nbsp;".$lift."</td></tr>";
        		$handicap = ($obj->handicap == 1) ? _EA_STMT_YES : _EA_STMT_NO;
				echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_HANDICAP.":&nbsp;".$handicap."</td><td class=\"sectiontableentry1\">&nbsp;</td></tr>";
				echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_YOBUILT . ":&nbsp;" . $obj->yobuilt . "</td>";
           		echo "<td width=\"50%\" class=\"sectiontableentry1\">&nbsp;</td></tr>";
        		echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_TOHEAT . ":&nbsp;" . $obj->toheat . "</td>";
        		$ufloorht = ($obj->toheat_ufloor == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_TOHEAT_UFLOOR . ":&nbsp;" . $ufloorht . "</td></tr>";
				$fireside = ($obj->fireside == 1) ? _EA_STMT_YES : _EA_STMT_NO;
				$air = ($obj->aircondition == 1) ? _EA_STMT_YES : _EA_STMT_NO; 
				echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_FIRESIDE.":&nbsp;".$fireside."</td><td class=\"sectiontableentry1\">"._EA_OBJ_AIRCONDITION.":&nbsp;".$air."</td></tr>";				
				$tv = ($obj->tv == 1) ? _EA_STMT_YES : _EA_STMT_NO;
				$dsl = ($obj->dsl == 1) ? _EA_STMT_YES : _EA_STMT_NO; 
				echo "<tr><td class=\"sectiontableentry1\">"._EA_OBJ_TV.":&nbsp;".$tv."</td><td class=\"sectiontableentry1\">"._EA_OBJ_DSL.":&nbsp;".$dsl."</td></tr>";				
				$balcony = ($obj->balcony == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_BALCONY . ":&nbsp;" . $balcony . "</td>";
        		$terrace = ($obj->terrace == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_TERRACE . ":&nbsp;" . $terrace . "</td></tr>";
        		$pool = ($obj->swpool == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		$garden = ($obj->garden == 1) ? _EA_STMT_YES : _EA_STMT_NO;
				echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">";
      			echo _EA_OBJ_POOL . ":&nbsp;".$pool."</td>";
				echo "<td width=\"50%\" class=\"sectiontableentry1\">"._EA_OBJ_GARDEN.":&nbsp;".$garden."</td></tr>";
        		$parkarea = ($obj->parkarea == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<tr><td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_PAREA . ":&nbsp;" . $parkarea . "</td>";
        		$garage = ($obj->garage == 1) ? _EA_STMT_YES : _EA_STMT_NO;
        		echo "<td width=\"50%\" class=\"sectiontableentry1\">" . _EA_OBJ_GARAGE . ":&nbsp;" . $garage . "</td></tr>";
				} //EDW ALLAGH
        		echo "<tr><td colspan=\"2\"></td></tr>";
				echo "<tr><th colspan=\"2\" class=\"sectiontableentry2\">" . _EA_OBJ_PRICES . EA_Template::mtgCalc($obj). " </th></tr>";
        		
				switch($obj->type) {
					
					case "1": // ... for rent
					case "3":
							if($obj->rent != 0.00){
						 echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">" . _EA_OBJ_RENT . ":&nbsp;" .  $eahelper->valFormat($obj->rent) . "</td></tr>";
						 
						 }
						 else{
						 echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">" . _EA_OBJ_RENT  . ":&nbsp;<b>" . _EA_OBJ_NO_PRICE . "</b></td><</tr>";
						 }
						echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">";
            			if($obj->rent_extra!=0.00) echo _EA_OBJ_ECOSTS . ":&nbsp;".  $eahelper->valFormat($obj->rent_extra) ;
               			echo "</td></tr>";
            			$commis = ($obj->commis == "")? "" : _EA_OBJ_COMMIS . ":&nbsp;". $obj->commis;
						echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">" . $commis . "</td></tr>";
                		echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">" . _EA_OBJ_SECURE . ":&nbsp;".  $eahelper->valFormat($obj->secure) .  "</td></tr>";
            		break;

					case "2": // ...for sale
					case "4":
							if($obj->price != 0.00){
						 echo "<tr><td colspan=\"2\" class='sectiontableentry1'>" . _EA_OBJ_PRICE . ":&nbsp;" . $eahelper->valFormat($obj->price) . "</td></tr>";
						 }
						 else{
						 echo "<tr><td colspan=\"2\" class='sectiontableentry1'>" . _EA_OBJ_PRICE . ":&nbsp;<b>" . _EA_OBJ_NO_PRICE . "</b></td></tr>";
						 }
						
           	    		$commis = ($obj->commis == "")? "" : _EA_OBJ_COMMIS . ":&nbsp;". $obj->commis;
						echo "<tr><td  colspan=\"2\" class=\"sectiontableentry1\">" . $commis . "&nbsp;</td></tr>";
                	break;
				
				}        
				if($obj->type == 2 || $obj->type == 4) {
            		if($obj->receipts != 0.00) echo "<tr><td colspan=\"2\" class=\"sectiontableentry1\">"._EA_OBJ_RENT_RCPTS."&nbsp;" . $eahelper->valFormat($obj->receipts) . "</td></tr>";
            		
            	}
				echo "<tr><td colspan=\"2\"><br /></td></tr>";
        		echo "</table>";
        		echo "</td></tr>";
        echo "</table>";                                
		
    	$tabs->endTab();        	
        if( count($gl) > 0) {
        	$tabs->startTab(_EA_OBJ_PICS, "pics-page");
        	?>
        	<script src="<?php echo $mosConfig_live_site; ?>/components/com_estateagent/templates/classic/gallery.js" type="text/javascript"></script>
			<script language="javascript" type="text/Javascript">		
								    	
			</script>
        	<table width="100%" border="0" cellspacing="1" cellpadding="4">
        	<tr>
           		<td class="sectiontableentry2" colspan="2" align="center"></td>
        	</tr>
        	</table>
        	
        	<table width="100%">
			<tr>
				<td>
				<div style="text-align:center;"><b>
					<a href='javascript:void(0)' onclick='gl.stopSls();gl.firstPic();'><?php echo _EA_GL_FIRST;?></a>&nbsp;::&nbsp;
					<a href='javascript:void(0)' onclick='gl.stopSls();gl.previousPic()'><?php echo _EA_GL_BACK;?></a>&nbsp;::&nbsp;
					<a href='javascript:void(0)' onclick='gl.stopSls();gl.nextPic()'><?php echo _EA_GL_NEXT;?></a>&nbsp;::&nbsp;
					<a href='javascript:void(0)' onclick='gl.stopSls();gl.lastPic();'><?php echo _EA_GL_LAST;?></a><br />
					Slideshow: [<a href='javascript:void(0)' onclick='gl.startSls();'><?php echo _EA_GL_START;?></a>&nbsp;-&nbsp;
					<a href='javascript:void(0)' onclick='gl.stopSls();'><?php echo _EA_GL_STOP;?></a>]&nbsp;
					&nbsp;[<a href='javascript:void(0)' onclick='gl.fasterSls();'><?php echo _EA_GL_FASTER;?></a>&nbsp;-&nbsp;
					<a href='javascript:void(0)' onclick='gl.slowerSls();'><?php echo _EA_GL_SLOWER;?></a>]
					</b>
				</div>
				</td>
			</tr>
			<tr>		
				<td>
					
					<div style="text-align:center" onMouseOver="return overlib('<table>'+pic[gl.currentPic].description+'</table>', CAPTION, pic[gl.currentPic].title, BELOW, RIGHT);" onMouseOut="return nd();">
						<img  width="100%" name="eaimage" id="eaimage"  alt="No Image Found" border="0" onClick="javascript:gl.stopSls();gl.nextPic()" />
					</div>
                </td>			
			</tr>
			</table>
			<script language="javascript" type="text/javascript">
				// Generate Picture Objects
				pic = new Array();
				<?php //
				if(count($gl) > 0) {
					$x=1;
					foreach($gl as $i) {
						echo "pic[".$x."] = new EAImage(\"".$mosConfig_live_site.$i->path."\",\"".$i->title."\",\"".$i->description."\",\"".$i->fname."\",\"".$i->type."\");";
         				$x++;
         			}
				}
				?>			
				// init EAGallery
				gl = new EAGallery(1,<?php echo count($gl);?>);
				// start gallery with 1st picture
				gl.showPic(1);
			</script>        	        	
        	<?php
        	$tabs->endTab();
        }
        ?>
        <?php
		if($eaconf->ea_googlemap_enable==1){ 
			$tabs->startTab("Map", "google-page");
		
		?>
				<table border="1" width="100%"><tr><td>
                <?php GMapFunctions::showMap("gmap",$obj->mapcoords, htmlentities($obj->title,ENT_QUOTES,"UTF-8")); ?>
                <div id="gmap" style ="border-bottom-color:#000000; border-bottom-style:dotted; border-width:1px;text-align:center; width:auto; height:300px;"></div>
                </td></tr></table>  		
        		
         
         <?php
        	$tabs->endTab();
        }
        
		if($ct){
			$tabs->startTab(_EA_OBJ_CONTACT, "contact-page");
			 EA_Template::contactForm($obj);
	   		$tabs->endTab();
		}
    	$tabs->endPane();                
		?>